package cn.wolfcode.service;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService extends IService<Role> {
    void delete(Long id);

    void insert(Role role, Long[] ids);

    Role get(Long id);

    List<Role> listAll();

    void update(Role role, Long[] ids);

    //根据角色id查询
    List<Role> selectByRid(Long id);

    IPage<Role> query(QueryObject qo);
}
